package com.lmj.demo.pojo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: lmj
 * @data: 2020/8/10 11:46
 * @email: limajun97@163.com
 * @description:
 */
public class UserExtendDemo {
    /**
     * 姓名
     */
    private String name;
    /**
     * 金额
     */
    private Integer money;

    public UserExtendDemo() {
    }

    public UserExtendDemo(String name, Integer money) {
        this.name = name;
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public void show () {
        System.out.println("我是：" + name + "，我现在有：" + money + "元");
    }

    @Override
    public String toString() {
        return "UserExtendDemo{" +
                "name='" + name + '\'' +
                ", money=" + money +
                '}';
    }
}
